package com.kexinde.wjifen.dao;

import com.kexinde.wjifen.model.Address;
import com.kexinde.wjifen.util.JdbcTemplate;

public class AddressDao {

	/**
	 * 根据地址id查找详细地址信息
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Address findById(Long id) throws Exception {
		String sql = "select id,province,city,area,stress,postCode from tb_address where id=?";
		Object[] params = { id };
		return JdbcTemplate.query("com.kexinde.wjifen.model.Address", sql, params,6);
	}
}
